import request from "@/utils/request";

// 获取询比价列表
export function getInquiryListApi(query, data) {
  return request({
    url: "/system/inquiry/list",
    method: "post",
    params: query,
    data,
  });
}

// 新增询比价
export function addInquiryApi(data) {
  return request({
    url: "/system/inquiry/add",
    method: "post",
    data,
  });
}

// 编辑询比价
export function editInquiryApi(data) {
  return request({
    url: "/system/inquiry/edit",
    method: "post",
    data,
  });
}

// 获取询比价详情
export function getInquiryDetailApi(inquiryPriceId,operType) {
  return request({
    url: `/system/inquiry/getInfo`,
    method: "get",
    params: { inquiryPriceId,operType },
  });
}

// 删除询比价
export function deleteInquiryId(inquiryPriceId) {
  return request({
    url: `/system/inquiry/del`,
    method: "get",
    params: { inquiryPriceId },
  });
}

// 审核
export function checkInquiryApi(data) {
  return request({
    url: "/system/inquiry/checkErpInq",
    method: "post",
    data,
  });
}

// 审核进度
export function selectAuditList(deliveryApplyId) {
  return request({
    url: `/system/inquiry/selectAuditList`,
    method: "get",
    params: { deliveryApplyId },
  });
}